import request from '@/utils/request'

let payApi = {
  // 支付记录列表
  getPayRecords(data) {
    return request({
      url: '/pay/record/list',
      method: 'get',
      params:data
    })
  },
  // 充值虞豆立即支付  获取支付参数
  payNow(data) {
    return request({
        url: '/mall/goodsInfo/payment',
        method: 'post',
        data
    })
  },
  // 回收订单支付
  payHuishou(data) {
    return request({
        url: '/backOrder/payment',
        method: 'post',
        data
    })
  },
  // 充值保证金立即支付  获取支付参数
  userPayOrderRecordPayment(data) {
    return request({
        url: '/userPayOrderRecord/payment',
        method: 'post',
        data
    })
  },

  // 申请打款  提交到财务审核 /tenantFinancialStatement/requestPayment
  tenantFinancialStatementRequestPayment(data) {
    return request({
        url: '/tenantFinancialStatement/requestPayment',
        method: 'post',
        data
    })
  },
  // 确认打款  财务确认打款 /tenantFinancialStatement/requestPayment
  tenantFinancialStatementPayment(data) {
    return request({
        url: '/tenantFinancialStatement/payment',
        method: 'post',
        data
    })
  },
  // 财务拒绝打款  /tenantFinancialStatement/refuse
  tenantFinancialStatementRefuse(data) {
    return request({
        url: '/tenantFinancialStatement/refuse',
        method: 'post',
        data
    })
  },
}
export default payApi

